<template>
  <div class="message">
    <div class="content" :ref="sign">
      <div v-text="'你要填充的数据'"></div>
      <!-- 你要填充的数据 -->
    </div>
  </div>
</template>
<script>
export default {
	props: {
		sign: {
			type: String,
			default: 'content1',
		},
	},
	mounted() {
		this.setHeight();
	},
	methods: {
		setHeight() {
			let height = this.$refs[this.sign].offsetHeight;
			// 。。。。。你的判断
		},
	},
};
</script>

